package com.briup.demo.extend;

import com.briup.demo.Book;

import com.briup.demo.Category;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BookExtend extends Book {
  // 书籍的类目信息
  private Category category;

  @Override
  public String toString() {
    return super.toString() + ":" + category.toString();
  }

}